//
//  VCDataInput.h
//  Astro
//
//  Created by Trinh Huy Cuong on 12/1/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol VCDataInputDelegate
@required
- (void) didRecieveDataFromVCDataInput:(NSString*)outputData andDataIndex:(NSInteger)_dataIndex;
- (void) didCancelVCDataInput;
@end

@interface VCDataInput : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource> {
	IBOutlet UIPickerView *picker;
	NSArray *datasource;
	id <VCDataInputDelegate> delegate;
}

@property (nonatomic, assign) id <VCDataInputDelegate> delegate;
@property (nonatomic, retain) NSArray *datasource;

- (IBAction) cancelVCDataInput;
- (IBAction) inputDataFromVCDataInput;
- (void) reloadData;

@end
	